using Cinch;
using System;
using System.ComponentModel;
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Controls;
using SLS.Base;
using SLS.ExClassLib.Events;
using SLS.ExClassLib.Loc;
namespace SLS.Presentation
{
    /// <summary>
    /// Interaction logic for EditGoodsTypeKeyDef.xaml
    /// </summary>
    [ViewnameToViewLookupKeyMetadata("GridMiniGTAR", typeof(GridMiniGTAR))]
    public partial class GridMiniGTAR:ExGRID
    {
 
        [Import("GTARLocalizationModel", typeof(ILocalizationModel))]
        public override ILocalizationModel LocalizationModel
        {
            get { return base.LocalizationModel; }
            set { base.LocalizationModel = value; }
        }     
    
        public GridMiniGTAR()
        {
            InitializeComponent();  
          if (DesignerProperties.GetIsInDesignMode(this as DependencyObject))
            {
                return;
            }
            BaseTable = "GTAR";
            Address = "GridMiniGTAR" + "#" + Guid.NewGuid().ToString().ToUpper();
        }
        public override void SLBC_Loaded(object sender, RoutedEventArgs e)
        {
            base.SLBC_Loaded(sender, e);
            try
            {
              if (NMICD != null)
              {
                NMICD.CMDEXE.TextChanged += new TextChangedEventHandler(CMDEXE_TextChanged);
              } 
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }  
    }
}